
module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;
    
    const conn = app.mongooseDB.get('db2'); 
   
    const User2Schema = new Schema({
      name: { type: String  }
    });
   
    return conn.model('User2', User2Schema,'user2');
  }
  